package com.yf.executorengine;

import java.util.ArrayList;

/**
 * 测试JIT编译，可通过jvisualvm,jconsole等工具查看JIT编译次数
 */
public class JITTest {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();

        for (int i=0; i<1000; i++) {
            list.add("让天下没有难学的技术");

            try {
                 Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
